When you are a webmaster (of a web domain, such as www.rjmprogramming.com.au) registered with Google you can receive (Google) console notifications from unusual events. Thanks for the heads up, Google. This is like a sanity check, independently, for webmasters, registering websites at Google.
Lately, weโve been noticed a bit, we guess, because of the introduction of index.htm into the picture (that we talked about last with Landing Page Mobile Phone Crontab Curl Tutorial) โฆ youโll see it middle top of todayโs tutorial picture โฆ saying cheese โฆ sorry, the dogs got involved in todayโs blog posting โฆ theyโre sooooooooooo immature โฆ unlike the humans, of course!?
Anyway, mistakes of the past hand crafting blog posting have come back to bite, and the Google crawl error count for error 404 has gone up, for www.rjmprogramming.com.au, quite a bit lately. Another term for this is โbroken linksโ.
No excuse, but when hand crafting blog posts, care is needed with HTML a links, pretty obviously, regarding โฆ
- spelling mistakes
- copying and pasting (absolute) URLs (often from a search engine result set) and forgetting the // or https:// bit (which does not always appear with a copied URL from the search engine results, for instance) โฆ which, if left out, as you can imagine, leads the web browser to want to search through your domain for that (what becomes โorphanedโ) URL reference โฆ we make this mistake quite a bit with Wikipedia and W3schools โฆ sorry, guys
- for us, moving between WordPress blog URLs that are non-permalink pointing to the permalink ones and misspelling, or not properly working(/mapping) out the permalink, or forgetting to change the blog posting title into its URL-part-of constituent (see also WordPress Upgrade Links Tutorial), properly, in our heads (Nala??!!)
Of course, all this should be checked with the WordPress (Blog Post) Preview button ahead of it going live, but, there you go. Nala????!!!! Weโre fixing them gradually, as an ongoing issue.
Weโve talked about broken links, and a programmable way to detect them, previously, with More Bookmarklet via Javascript Tutorial and WordPress plugins such as Broken Link Checker could help with this issue, as well.
And youโll be pleased to know No puppy feelings were hurt in the production of this blog posting โฆ it ended up being my fault.
Previous relevant More Bookmarklet via Javascript Tutorial is shown below.
Have you heard of Bookmarklets?
Are you a person with a cluttered (thoughtfully placed, of course) desk?
Yes? Read on โฆ even if not, โGo to Jail โฆ Do Not Pass Goโ (maybe you were impressed by that idea that the Lordโs Prayer was Once Etched on a Pinhead? โฆ yes? โฆ read on down below โฆ are you here? โฆ oops โฆ cโest la vie โฆ read on) โฆ read on โฆ why?
This tutorial builds on Bookmarklet via Javascript Primer Tutorial below. For our tutorial we write a bookmarklet to check for Broken Links, something that could be very useful to run against the very common Links pages on websites today, so that you can check for those Broken Links that annoy the search engines so much and contribute to a lower SEO โscoreโ.
<script type=โtext/javascriptโ>
function checkBrokenLink() {
var bWin,j,b=โ,tl=40,dl=document.links;
for(j=0;j<dl.length;j++){
if(b.indexOf(dl[j].href)<0){
bWin=window.open(dl[j].href,โBWโ+j,โtop=โ+tl+โ,left=620,width=400,height=120,
scrollbars=yes,menubar=no,titlebar=no,toolbar=no,status=noโ);
tl+=120;
b+='<tr style=โheight:120โณ><td>โ+dl[j].href+'</td><td>โ;
b+=dl[j].target+'</td><td>โ+dl[j].id+'</td><td>โ;
b+=dl[j].className+'</td><td>โ></td></tr>โ;
}
}
if(b===โ){
alert(โNo linksโ);
}else{
bWin=window.open(โ,โLinks of โ+document.title,โtop=0,left=0,width=600,height=800,scrollbars=yesโ);
bWin.title=โLinks of โ+document.title;
bWin.document.body.innerHTML='<table border=1 cellpadding=5 cellspacing=0><tr><th>Link of โ;
bWin.document.body.innerHTML+=document.title+'</th><th>Target</th><th>ID</th><โ;
bWin.document.body.innerHTML+=โth>Class</th><th>Broken?</th></tr>โ+b+'</table>โ;
}
}
</script>
To get some downloadable Javascript programming code for this bookmarklet please rename to BrokenLinksjs and copy its contents into the address of your Bookmarklet to try this yourself.
Okay, if you have downloaded, take a look at how similar it is to code above. So you just place javascript: in front of the Javascript code required to do something interesting, all squeezed together onto the one line (no pinheads please) โฆ this is where the cluttered desk people may continue breathing easily but others may falter.
Well, if you can place this sort of thing into a browser Bookmark then that is a Bookmarklet. Remember the Javascript calculator rave in previous tutorials?
Bear in mind we show Firefox in tutorial but all browsers have something similar, whether that be called Bookmarks or Favourites. Our tutorial shows the Safari browser using this Bookmarklet.
Regarding this Bookmarklet tutorial topic I really like โJavaScript & Ajaxโ seventh edition by Tom Negrino and Dori Smith.
Click onpicture above to go to tutorial about Bookmarklets.
Did you know โฆ
JavaScript makes a great easy-access Calculator?
Try typing the lines below into the address bar of your favourite browser:
Javascript: eval(512 / 380);
Javascript: eval(512 * 380);
Javascript: eval(512 โ 380);
Javascript: eval(512 + 380);
Javascript: eval(512 % 380);
These days we spend so much time on the Internet it is a much quicker way to get to a calculator!
Previous Bookmarklet via Javascript Primer Tutorial below โฆ
Have you heard of Bookmarklets?
Are you a person with a cluttered (thoughtfully placed, of course) desk?
Yes? Read on โฆ even if not โฆ read on โฆ why?
<html>
<head>
</head>
<body>
<script type=โtext/javascriptโ>
while (โabracadabraโ != prompt(โGuess the magic word?โ).toLowerCase()) {
alert(โBad Luckโ);
}
document.write(โ<html><body><p>You win a cupee doll!</body></html>โ);
</script>
<a href=โ#โ onclick=โjavascript: while (โabracadabraโ != prompt(โGuess the magic word?โ).toLowerCase()) { alert(โBad Luckโ); } document.write(โ<html><body><p>You win a cupee doll!</body></html>โ);โ>Click me for another (confirmed) go โฆ but limited offer on cupee dolls!</a>
</body>
</html>
Look at the cutesy wootsey HTML/Javascript above. Isnโt it cuuuuuuute?!
Isnโt it sweeeeeet?!
โซ Oh, aint she sweet, when sheโs walking down the street,
Well I ask you very confidentially โฆ aint โฆ she โฆ sweet. โซ
Enough of a sell job?
Okay look at the Javascript of one vs Javascript of one below in the a tag onclick bit. So you just place javascript: in front of the Javascript code required to do something interesting, all squeezed together onto the one line โฆ this is where the cluttered desk people may continue breathing easily but others may falter.
Well, if you can place this sort of thing into a browser Bookmark then that is a
Bookmarklet. Remember the Javascript calculator rave in previous tutorials?
Bear in mind we show Firefox in tutorial but all browsers have something similar, whether that be called Bookmarks or Favourites.
Click onpicture above to go to tutorial about Bookmarklets.
Link to downloadable source code of HTML above is bmarkhtml which you need to rename in order to try.
Did you know โฆ
JavaScript makes a great easy-access Calculator?
Try typing the lines below into the address bar of your favourite browser:
Javascript: eval(512 / 380);
Javascript: eval(512 * 380);
Javascript: eval(512 โ 380);
Javascript: eval(512 + 380);
Javascript: eval(512 % 380);
These days we spend so much time on the Internet it is a much quicker way to get to a calculator!
If this was interesting you may be interested in this too.
If this was interesting you may be interested in this too.
If this was interesting you may be interested in this too.
28 Responses to Google Crawl Errors Primer Tutorial